package com.free;

import com.free.annotation.EnableServerHub;
import com.free.annotation.Scan;
import com.free.ioc.SimpleIOC;

import java.util.concurrent.TimeUnit;

/**
 * @author kanlei
 * @email freefree.me@qq.com
 * @since 2020-11-03
 */
@EnableServerHub
@Scan(scan = "com.free")
public class PMain {


    public static void main(String[] args) throws Exception {

        String scan = PMain.class.getDeclaredAnnotation(Scan.class).scan();
        SimpleIOC simpleIOC = new SimpleIOC(scan);
        TimeUnit.SECONDS.sleep(Integer.MAX_VALUE);
    }
}
